package com.wowo.other;

import com.wowo.aoon.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyApp {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(MyConfiguration.class);
        Girl girl = applicationContext.getBean(Girl.class);
        girl.kiss();

        UserController userController = applicationContext.getBean(UserController.class);
        userController.save();
    }
}
